package com.example.demo.rule.executor;

import com.example.demo.drools.base.RuleFact;
import com.example.demo.drools.executor.AbstractExecutor;
import com.example.demo.rule.fact.CardReceiveFact;
import org.springframework.stereotype.Component;

/**
 * 领取优惠券执行器
 */
@Component
public class CardReceiveExecutor extends AbstractExecutor {

	@Override
	public Boolean support(RuleFact fact) {
		return fact instanceof CardReceiveFact;
	}
	

}
